<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" import="java.util.*, BEAN.*" %>
<%@ page session="true" %> 
<jsp:include page="menu.jsp"></jsp:include>

<div id="content">
	
		<h1>Consulta por Autor de Livros</h1>
		<br/>
		<% ArrayList<String> mensagens = (ArrayList<String>) session.getAttribute("erro");
			if (mensagens != null){
				for (String mensagem : mensagens){%>
		     	   	<%=mensagem.toString()%>
		     	   	<br/>
			        <%}
			    mensagens.clear();
			    session.setAttribute("erro", mensagens); 
		        
	    }%>
	    
		<br/>
		<br/>

	<div style="position:absolute; margin-left: 300px;">
		<form  id="form1" action="/Livraria/livraria"  method="POST">
			<h3>
			  <label>Digite o nome do autor</label>
				<input type="text" size="50" name="autor" /><br/>
			</h3>
			<br/><br/>
			  <input type="submit" value="Consultar"  />
    	      <input size="3" type="hidden" name="corrente" value="12">
		</form>
	</div>
</div>
	
</body>
</html>
